﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{
    /// <summary>
    /// 博客类别所属表
    /// </summary>
    public class BlogCateGory : BaseEntity
    {
        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name = "博客Id")]
        [ForeignKey(nameof(Blog))]
        public int Bid { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(255), Column(TypeName = "varchar(255)")]
        [Display(Name = "类别标签Id")]
        public string Cid { get; set; }


        public Blog Blog { get; set; }
    }
}
